package Assignment13_BooleanOrSignal;

public class Signal {

	int x;
	int y;

	public Signal(int x, int y) {

		this.x = x;
		this.y = y;
	}

	@Override
	public String toString() {

		return ""+x + " " + y;
	}

	@Override
	public boolean equals(Object obj) {

		Signal s = (Signal) obj;

		if ((this.x == s.x) && (this.y == s.y)) {

			return true;

		} else {
			return false;
		}

	}

	@Override
	public int hashCode() {

		return (x + "" + y).hashCode();
	}


}